package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.entity.data.BankcardDO;
import com.bdzl.pub.util.param.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name="loanAdmin", configuration = FeignConfig.class,contextId = "BankcardService",url = Constant.sys+":8001")
public interface AdminBankcardFeignService {
    /**
     * 删除银行卡信息
     */
    @PostMapping( "/bdzl/bankcard/remove")
    @ResponseBody
    public R remove(@RequestParam("bcId") Integer bcId);

    /**
     * 修改银行卡信息
     */
    @PostMapping("/bdzl/bankcard/update")
    @ResponseBody
    public R updateBankcard(@RequestBody BankcardDO bankcard);
}
